/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package fileprocessor_sdt1;
import ObserverPattern.FileCollection;
import Proxy.FileInterface;
import Proxy.RestrictedUser;
/**
 *
 * @author Andreea
 */
//singleton
public class FileController {
    private FileCollection collection;
    private FileController(){
        collection=new FileCollection();
    }

    public FileCollection getCollection() {
        return collection;
    }

    public void setCollection(FileCollection collection) {
        this.collection = collection;
    }
    private static class SingletonHolder { 
        private static final FileController INSTANCE = new FileController();
    }
    
    public static FileController getInstance() {
        return SingletonHolder.INSTANCE;
    }
}
